<#assign base=request.contextPath>
<!DOCTYPE html> 
<html>
	<head>
		<title>${title}</title>
		<meta charset="utf-8">
		<#include "common/reference.ftl" />
		<#include "common/am.reference.ftl" />
	</head>
	<body class="${configs["skinName"]}">
		<div class="page-content">
			<div class="row">
			<#include "common/breadcrumb.ftl">
				<form id="form" role="form" class="form-horizontal" method="post" action="${base}/${form_action}">
					<div class="col-xs-12">
						<div class="widget-box">
							<div class="widget-body">
								<input type="hidden" name="driverId" id="driverId" value="${model.driverId}" <#if viewMode == "view">disabled</#if>>
								
								<div class="alert alert-warning">
									<strong>提示!</strong>
									<strong style="color:#dd514c;">出现红框</strong>的表示不能为空
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">
										司机手机号
									</label>
									<div class="col-sm-6">
										${model.phoneNo}
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">
										身份证
									</label>
									<div class="col-sm-6">
										${model.idCard}
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-3 control-label no-padding-right">
										真实姓名
									</label>
									<div class="col-sm-6">
										${model.trueName}
									</div>
								</div>
								<div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right">
                                         请选择车辆
                                    </label>
                                    <div class="col-sm-3">
                                        <select id="carNo" name="carNo" class="chosen-select form-control" required data-placeholder="请选择车辆" <#if viewMode == "view">disabled</#if>>
                                            <option value="">请选择车辆</option>
                                            <#if carList?exists && carList?size gt 0>
                                            <#list carList as item>
                                            <option value="${item.vehicleNo}"<#if model.carNo == item.vehicleNo>selected</#if> >${item.vehicleNo}</option>
                                            </#list>
                                            </#if>
                                        </select>
                                        <input type="hidden" name="driverName" value="${model.driverName}">
                                    </div>
                                </div>
								<div class="clearfix form-actions">
									<div class="col-md-offset-3 col-md-9">
										<button id="btnSubmit" class="btn btn-info" type="submit">
											<i class="fa fa-check bigger-110"></i>
											提 交
										</button>
									</div>
								</div>
							</div>
						</div>
					</div>
				</form>
			</div>	
		</div>
		<script type="text/javascript">
		$(function(){
			$('#form').validator();

			$('#carNo').chosen();
            $('#carNo').change(function(){
                var carNo = $(this).val();
            });
            $('#carNo').trigger('carNo');
		})
		</script>
	</body>
</html>